import request from '@/utils/request'

// 查询挡边列表
export function listFlange(query) {
  return request({
    url: '/hualian/flange/list',
    method: 'get',
    params: query
  })
}

// 查询挡边详细
export function getFlange(flangeId) {
  return request({
    url: '/hualian/flange/' + flangeId,
    method: 'get'
  })
}

// 新增挡边
export function addFlange(data) {
  return request({
    url: '/hualian/flange',
    method: 'post',
    data: data
  })
}

// 修改挡边
export function updateFlange(data) {
  return request({
    url: '/hualian/flange',
    method: 'put',
    data: data
  })
}

// 删除挡边
export function delFlange(flangeId) {
  return request({
    url: '/hualian/flange/' + flangeId,
    method: 'delete'
  })
}
